package com.zoweunion.mechanic.dao.base;

import com.zoweunion.mechanic.model.WxUserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author zhangjun
 * @date 2019-07-25
 */
@Mapper
@Component
public interface WxUserInfoDao {
	/**
	 * 根据openid获取用户详细信息
	 * @param openid
	 * @return
	 */
	WxUserInfo getWxUserInfoByOpenid(@Param("openid") String openid);
	/**
	 * 保存信息
	 * @param wxUserInfo
	 * @return
	 */
	int saveWxUserInfo(WxUserInfo wxUserInfo);

	/**
	 * 通过openid或者id逻辑删除数据
	 * @param wxUserInfo
	 * @return
	 */
	int logicDeleteByOpenidOrId(WxUserInfo wxUserInfo);


}
